package map.android.baidu.carpool.response;

import com.baidu.lbs.net.http.response.ComNetResponse;

import java.io.Serializable;

/**
 * Created by zhangtongyu on 15/3/23.
 * main模块首页基本信息接口baseinfo response
 */
public class HomePageBaseInfoResponse extends ComNetResponse implements Serializable {

    private static final long serialVersionUID = -6389812094711459921L;

    public HomePageBaseInfo data;

    private int errNo = -1;
    private String msg = "";

    public static class HomePageBaseInfo implements Serializable {
        private static final long serialVersionUID = 1113345415656568148L;

        public UserInfoModel userInfo;
        public OrderInfoModel orderInfo;
    }

    public static class OrderInfoModel implements Serializable {

        private static final long serialVersionUID = -8124574888487599188L;
        public String order_id = "";
        public int status = 0;
        public String orderStatusDesc = "";
    }

    public class UserInfoModel implements Serializable {
        private static final long serialVersionUID = 5225284185631994371L;

        public String uid;
        public String displayname;
        public String mobile_decrypt;

    }

    @Override
    public boolean isBadResponse() {
        return false;
    }

    @Override
    public int getErrorNo() {
        return errNo;
    }

    @Override
    public String getErrorMsg() {
        return msg;
    }

}
